﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Security;
using System.Web.UI.WebControls;
using Koonsoft.CustomerService.BLL;

namespace CustomerService.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LoginButton_Click(object sender, EventArgs e)
        {
            string account = UserName.Text.Trim();
            string password = Password.Text.Trim();
            
            if (new EmployeeBLL().Login(account,password))
            {
                FormsAuthentication.RedirectFromLoginPage(UserName.Text.Trim(), false);
            }
        }
    }
}